﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Autumn.Common
{
    class ProjectDefine
    {
        public class SeverInfo
        {
            static public string ip = "0.0.0.0";
            static public int port = 9527;
            //static public string log_path = Environment.CurrentDirectory + @"\Autumn";
            static public string log_path = @"C:\Users\meng.li\Documents\Visual Studio 2008\Projects\MyTools\Autumn\Autumn\bin\Debug" + @"\Autumn";
        }

        public enum ProjectMsgType_e
        {
            MSG_UNKNOWN = -1,

            //SessionManager
            MSG_ADD_SESSION = 1,
            MSG_DEL_SESSION = 2,

            //SvrKernal
            MSG_RESTART_SERVICE = 11,
        }

        public enum CmdType_e
        { 
            CMD_UNKNOWN = -1,

            CMD_EXECUTE = 1,
            CMD_UPLOAD,
            CMD_DOWNLOAD,

            EXECUTE_REP = 10,
            UNKNOWN_REP,
            UPLOAD_REP,
            DOWNLOAD_REP,
        }

        public enum CmdState
        { 
            STATE_UNKNOWN = -1,

            STATE_UPLOAD_START = 1,
            STATE_UPLOAD_END,
            STATE_DOWNLOAD_START,
            STATE_DOWNLOAD_END,
        }

        public delegate void AcceptorDelegate();
    }
}
